public class Random50 {
    public static void main(String[] args) {
   int randomNum = (int)(Math.random()*50)+1;

    System.out.println("随机数："+randomNum);
    }
}
